<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AdAddEdit.ascx.cs" Inherits="IGlobalist.Cms.Admin.Control.AdAddEdit" %>
<%@ Register Src="CmsExtPropertiesForm.ascx" TagName="CmsExtPropertiesForm" TagPrefix="uc1" %>
 <table>
    <tr>
        <td valign="top">
        <fieldset id="fsMain" runat="server">
            <legend><asp:Label ID="lblMain"  runat="server"  Text="Main Properties"></asp:Label> </legend>
                <table cellpadding="2" cellspacing="2">
                    <tr>
                        <td colspan="3">    
                    <asp:Label runat="server" ID="lblStatus" ForeColor="#1A5688" Font-Bold="True" Font-Size="Medium"/>
                    <br />

                        </td>
                    </tr>
                    
                    <tr>
                        <td><asp:Label ID="Label1" runat="server" Text="Ad class"></asp:Label></td>
                        <td  align="left"><asp:DropDownList ID="ddlClass" runat="server"  Enabled="False" OnSelectedIndexChanged="ddlClass_SelectedIndexChanged" AutoPostBack="true" DataSourceID="ODSClassPage" DataTextField="Name" DataValueField="ID" >
                            </asp:DropDownList>
                            <asp:ObjectDataSource ID="ODSClassPage" runat="server" SelectMethod="GetClassListByClassTypeID"  TypeName="IGlobalist.Cms.Bll.ClassController">
                                <SelectParameters>
                                        <asp:Parameter DefaultValue="6" Name="classTypeID" Type="Int16" />
                                </SelectParameters>
                            </asp:ObjectDataSource>
                        </td>
                    </tr>
                    
                    <tr>
                        <td><asp:Label ID="lblName" runat="server" Text=" Name"></asp:Label></td>
                        <td><asp:TextBox ID="tbName" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvName" runat="server" ErrorMessage="Must enter name" ControlToValidate="tbName" >*</asp:RequiredFieldValidator>
                            <asp:Label ID="lblError" runat="server" Text="" ForeColor="red"></asp:Label> 
                        </td>
                    </tr>
                   
                    <tr>
                        <td><asp:Label ID="Label4" runat="server" Text="Link"></asp:Label></td>
                        <td><asp:TextBox ID="tbLink" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                     <tr>
                        <td><asp:Label ID="Label7" runat="server" Text="Tooltip"></asp:Label></td>
                        <td><asp:TextBox ID="tbTooltip" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                     <tr>
                        <td valign="top"><asp:Label ID="Label9" runat="server" Text="Page"></asp:Label></td>
                        <td align="left">
                           <asp:TreeView ID="tvPage" runat="server" ShowCheckBoxes="All">
                            </asp:TreeView>
                     </td>
                    </tr>
                    <tr>
                        <td><asp:Label ID="Label3" runat="server" Text="Type"></asp:Label></td>
                        <td align="left">
                           <asp:DropDownList ID="ddlType" runat="server">
                                <asp:ListItem Selected="True" Value="1">Banner</asp:ListItem>
                                <asp:ListItem Value="2">Left</asp:ListItem>
                                <asp:ListItem Value="3">Right</asp:ListItem>
                                <asp:ListItem Value="4">Bottom</asp:ListItem>
                            </asp:DropDownList></td>
                    </tr>
                    
                    <tr>
                        <td><asp:Label ID="Label2" runat="server" Text="Description"></asp:Label></td>
                        <td align="left"><asp:TextBox ID="tbDescription" runat="server" Rows="4" Height="100px" TextMode="MultiLine"></asp:TextBox></td>                       
                    </tr> 
                     
                     <tr>
                        <td><asp:Label ID="Label5" runat="server" Text="Images"></asp:Label></td>
                        <td align="left">
                            <asp:Image ID="imgPhoto" runat="server" Visible="false" /><br />
                            <asp:FileUpload runat="server" ID="fuFile"  Size="60"/> 
                        </td>
                    </tr> 
                          
               </table>   
        </fieldset> 
        </td>
    </tr>
    
 <asp:Panel ID="pnlExt" runat="server">
    <tr>
        <td>
            <fieldset id="fsExt" runat="server">
                <legend><asp:Label ID="lblExt"  runat="server"  Text="Ext Properties"></asp:Label> </legend>               
                <uc1:CmsExtPropertiesForm ID="ucCmsExtPropertiesForm" runat="server" />
                
            </fieldset> 
        </td>
    </tr>
   </asp:Panel>
 </table> 